<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title><?php echo $seo['title']; ?> - 后台管理中心</title>
    <meta content="<?php echo $seo['description']; ?>" name="description" />
    <meta content="逍遥·李志亮" name="author" />
    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="<?php echo asset('admin/css/bootstrap.min.css') ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('admin/css/bootstrap-responsive.min.css') ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('admin/css/font-awesome.min.css') ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('admin/css/style.css') ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('admin/css/style-responsive.css') ?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('admin/css/default.css') ?>" rel="stylesheet" type="text/css" id="style_color"/>
    <!-- END GLOBAL MANDATORY STYLES -->
    <link rel="shortcut icon" href="http://www.hhailuo.com/wp-content/themes/coffee-beans/images/logo.png" />
    <script type="text/javascript">
        window.HHAILUO = {
            'IMAGE_DOMAIN' : '<?php echo IMAGE_DOMAIN; ?>',
            'ASSETS_DOMAIN' : '<?php echo ASSETS_DOMAIN; ?>',
            'UPLOAD_IMAGE_URL' : '<?php echo UPLOAD_IMAGE_URL; ?>',
        };
    </script>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
    <!-- BEGIN HEADER -->
    <div class="header navbar navbar-inverse navbar-fixed-top">
        <!-- BEGIN TOP NAVIGATION BAR -->
        <div class="navbar-inner">
            <div class="container-fluid">
                <!-- BEGIN LOGO -->
                <a class="brand" href="<?php echo $site_info['domain']; ?>" target="_blank">TP-Admin</a>
                <!-- END LOGO -->
                <div class="navbar hor-menu hidden-phone hidden-tablet">
                    <div class="navbar-inner">
                        <ul class="nav" id="JS-top_menu">
                            <?php foreach ($top_menu as $key => $value) { ?>
                            <li id="_M<?php echo $value['id']; ?>" class="<?php echo $key == 0 ? 'active' : '' ?>">
                                <a href="javascript:Index._M(<?php echo $value['id']; ?>,'<?php echo url($value['module'] . '/' . $value['action']); ?>')"><?php echo $value['title']; ?></a>
                            </li>
                            <?php } ?>
                            <li>
                                <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;"><?php echo $site_info['name']; ?><span class="arrow"></span></a>
                                <ul class="dropdown-menu">
                                    <?php foreach ($sites as $key => $site) { ?>
                                    <li>
                                        <a href="<?php echo url('Index/change_site/siteid/' . $site['id']); ?>">
                                            <?php echo $site['name']; ?>
                                        </a>
                                    </li>
                                    <?php } ?>
                                </ul>
                                <b class="caret-out"></b>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- BEGIN RESPONSIVE MENU TOGGLER -->
                <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
                    <img src="<?php echo asset('admin/image/menu-toggler.png') ?>" alt="" />
                </a>
                <!-- END RESPONSIVE MENU TOGGLER -->
                <!-- BEGIN TOP NAVIGATION MENU -->
                <ul class="nav pull-right">
                    <!-- BEGIN USER LOGIN DROPDOWN -->
                    <li class="dropdown user">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <span class="username"><?php echo $user_info['account'] . '[' . $user_info['role_name'] . ']' ?></span>
                            <i class="icon-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo url('User/changePassword'); ?>" target="right"><i class="icon-user"></i> My Profile</a></li>
                            <li class="divider"></li>
                            <li><a href="javascript:void(0);"><i class="icon-lock"></i> Lock Screen</a></li>
                            <li><a href="<?php echo url('Public/logout'); ?>"><i class="icon-key"></i> 退出</a></li>
                        </ul>
                    </li>
                    <!-- END USER LOGIN DROPDOWN -->
                </ul>
                <!-- END TOP NAVIGATION MENU -->
            </div>
        </div>
        <!-- END TOP NAVIGATION BAR -->
    </div>
    <!-- END HEADER -->
    <!-- BEGIN CONTAINER -->
    <div class="page-container">
        <!-- BEGIN SIDEBAR -->
        <div class="page-sidebar nav-collapse collapse" id="JS-left_menu"></div>
        <!-- END SIDEBAR -->
        <!-- BEGIN PAGE -->
        <div class="page-content">
            <!-- BEGIN PAGE CONTAINER-->
            <div class="container-fluid">
                <!-- BEGIN PAGE HEADER-->
                <div class="row-fluid">
                    <div class="span12">
                        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                        <ul class="breadcrumb" id="JS-breadcrumb">
                            <li>
                                <i class="icon-home"></i>
                                <a href="/Index/index.html">Home</a>
                            </li>
                        </ul>
                        <!-- END PAGE TITLE & BREADCRUMB-->
                    </div>
                </div>
                <!-- END PAGE HEADER-->
                <div id="dashboard" style="position:relative; overflow:hidden;">
                    <iframe name="right" id="rightMain" src="<?php echo url('Index/main') ?>" frameborder="0" scrolling="auto" width="100%" height="auto" allowtransparency="true"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTAINER -->
    <!-- BEGIN FOOTER -->
    <div class="footer">
        <div class="footer-inner">
            Copyright @ 2012 - 2016 <a href="http://www.hhailuo.com" target="_blank">红海螺</a> All Rights Reserved. 官网: <a href="http://tp3.hhailuo.com" target="_blank">TP-Admin</a>
        </div>
    </div>
    <!-- END FOOTER -->
    <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
    <!-- BEGIN CORE PLUGINS -->
    <script src="<?php echo asset('admin/js/jquery-1.10.1.min.js'); ?>" type="text/javascript"></script>
    <script src="<?php echo asset('admin/js/jquery-migrate-1.2.1.min.js'); ?>" type="text/javascript"></script>
    <!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
    <script src="<?php echo asset('admin/js/jquery-ui-1.10.1.custom.min.js'); ?>" type="text/javascript"></script>
    <script src="<?php echo asset('admin/js/bootstrap.min.js'); ?>" type="text/javascript"></script>
    <!--[if lt IE 9]>
    <script src="<?php echo asset('admin/js/excanvas.min.js'); ?>"></script>
    <script src="<?php echo asset('admin/js/respond.min.js'); ?>"></script>
    <![endif]-->
    <script src="<?php echo asset('admin/js/jquery.slimscroll.min.js'); ?>" type="text/javascript"></script>
    <script src="<?php echo asset('admin/js/jquery.blockui.min.js'); ?>" type="text/javascript"></script>
    <script src="<?php echo asset('admin/js/jquery.cookie.min.js'); ?>" type="text/javascript"></script>
    <script src="<?php echo asset('admin/js/jquery.uniform.min.js'); ?>" type="text/javascript" ></script>
    <!-- END CORE PLUGINS -->
    <!-- BEGIN PAGE LEVEL SCRIPTS -->
    <script src="<?php echo asset('admin/js/app.js'); ?>" type="text/javascript"></script>
    <script src="<?php echo asset('admin/js/index.js'); ?>" type="text/javascript"></script>
    <script src="{:asset('js/artdialog/jquery.artDialog.source.js')}&skin=default"></script>
    <!-- END PAGE LEVEL SCRIPTS -->
    <script>
        jQuery(document).ready(function() {
            App.init(); // initlayout and core plugins
            Index.init();
        });
   </script>
   <!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>